﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using ESRI.ArcGIS.Geodatabase;
using ESRI.ArcGIS.Carto;

namespace Tayninh2011
{
    interface ITnToolsCalculator
    {
        IFeatureLayer TnTinhThuaMattien(string in_featureClass, string select_featureClass, IWorkspaceEdit workspace);
        IFeatureLayer TnTinhThuaMattien2(string in_featureClass, string select_featureClass, IWorkspaceEdit workspace);
        IFeatureLayer TnTinhThuaHem(string in_featureClass, string select_featureClass, IWorkspaceEdit workspace);
        void TnCalculateAll(string khuvuc,string thua_featureClass, string duong_featureClass, string duong_fc_buff_05, string duong_fc_buff_50, string duong_fc_buff_100, string duong_fc_buff_200, string[,] user_info,string environment, IWorkspaceEdit workspace, BackgroundWorker bw);
        void TnCalculateThuaMattien(ref IFeatureClass thua, ref IFeatureClass duongBuff05,ref IFeatureClass duongBuff50,string dieukien_locthua, BackgroundWorker bw,esriSelectionResultEnum type);
        void TnAddInfoForThuaMattien(ref IFeatureClass thua, ref IFeatureClass duongBuff05, ref IFeatureClass duongBuff50, string dieukien_locthua, BackgroundWorker bw, esriSelectionResultEnum type);
        void TnCalculateThuaMattientron(ref IFeatureClass thua, ref IFeatureClass duongBuff05, ref IFeatureClass duongBuff50, string dieukien_locthua, BackgroundWorker bw, esriSelectionResultEnum type);
        void TnCalculateThuaMattienKotron(ref IFeatureClass thua, ref IFeatureClass duongBuff05, ref IFeatureClass duongBuff50, string dieukien_locthua, BackgroundWorker bw, esriSelectionResultEnum type);

        void TnAddInfoForThuaHem(ref IFeatureClass thua, ref IFeatureClass hemBuff05, ref IFeatureClass duongBuff100, ref IFeatureClass duongBuff200, string dieukien_locthua, BackgroundWorker bw, esriSelectionResultEnum type);
        void TnCalculateThuahem(ref IFeatureClass thua_hem, ref IFeatureClass duongBuff100, ref IFeatureClass duongBuff200, string dieukien_locthua, BackgroundWorker bw, esriSelectionResultEnum type);
        void TnCalculateThuahem100(ref IFeatureClass thua_hem, ref IFeatureClass duongBuff100, string dieukien_locthua, BackgroundWorker bw, esriSelectionResultEnum type);
        void TnCalculateThuahem100_200(ref IFeatureClass thua_hem, ref IFeatureClass duongBuff200, string dieukien_locthua, BackgroundWorker bw, esriSelectionResultEnum type);
        void TnCalculateThuahem200(ref IFeatureClass thua_hem, string dieukien_locthua, BackgroundWorker bw, esriSelectionResultEnum type);
        void TnAddInfoForHem(string hem_table, string duong_table,string[,] user_info, IWorkspaceEdit workspace,string environment,BackgroundWorker bw);

        bool TnIsLocked(IFeatureClass land, string strfield);
    }
}
